Inside Macintosh: Sound

| Previous | Chapter contents | Chapter top | Section top | Next |

Chunk Headers

Every chunk in an AIFF or AIFF-C file contains a chunk header that defines characteristics of the chunk. The ChunkHeader data type defines a chunk header.

TYPE ChunkHeader =
RECORD
    ckID:       ID;             {chunk type ID}
    ckSize:     LongInt;        {number of bytes of data}
END;
ckID
The ID of the chunk. An ID is a 32-bit concatenation of any four printable ASCII characters in the range ' ' (space character, ASCII value $20) through '~' (ASCII value $7E). Spaces cannot precede printing characters, but trailing spaces are allowed. Control characters are not allowed. See "Chunk IDs" for a list of the currently recognized chunk IDs.
ckSize
The size of the chunk in bytes, not including the ckID and ckSize fields.

© 1998 Apple Computer, Inc.

| Previous | Chapter contents | Chapter top | Section top | Next |